{% extends "idios/base.html" %}

{% load i18n %}
{% load account_tags %}

{% block head_title %}{% user_display page_user as page_user_display %}{% blocktrans %}Profile for {{ page_user_display }}{% endblocktrans %}{% endblock %}

{% block center_area %}
    {% user_display page_user as page_user_display %}
    
    <h1>{% blocktrans %}Profile for {{ page_user_display }}{% endblocktrans %}</h1>
    
    {% include "profiles/_profile_info.html" %}
    
    {% if is_me %}
        <p><a id="edit-profile-box" href="{% url profile_edit %}" class="btn">Edit profile</a></p>
    {% endif %}
{% endblock %}

{% block extra_body %}
    {% comment %}
    <script>
        $(function() {
            $("#edit-profile-box").modal({
                backdrop: true
            });
        });
    </script>
    {% endcomment %}
{% endblock %}
